# coding=utf-8
__author__ = 'liubin'
from flask.ext.restful import fields

dt_row_fields = {
    'pkey':  fields.Integer
}

user_resource_fields = {
    'DT_RowId':  fields.String,
    'DT_RowData': fields.Nested(dt_row_fields),
    'id': fields.Integer,
    'name': fields.String,
    'real_name': fields.String,
    'pwd': fields.String
}

role_resource_fields = {
    'id': fields.Integer,
    'code': fields.String,
    'name': fields.String
}